import Layout from '@/layout'

const borrowRouter = {
  path: '/borrow',
  component: Layout,
  redirect: '/borrow/table',
  name: 'Borrow',
  meta: {
    title: '借阅管理'
  },
  children: [
    {
      path: 'borrowBook',
      component: () => import('@/views/borrow/borrowBook'),
      name: 'BorrowTable',
      meta: { title: '借阅图书', noCache: false }
    },
    {
      path: 'returnBook',
      component: () => import('@/views/borrow/returnBook'),
      name: 'ReturnTable',
      meta: { title: '归还图书', noCache: false }
    },
    {
      path: 'table',
      component: () => import('@/views/borrow/table'),
      name: 'BorrowEdit',
      meta: { title: '借阅列表', noCache: false }
    }
  ]
}

export default borrowRouter

